package day06;

import java.util.Enumeration;

public class MethodDemo {
    public static void main(String[] args) {
        /*
     say("wtx");
     sayhello("wtx",23);
     double a =num();
     System.out.println(a);
     int b=get(5,6);
     System.out.println(b);
     int m=5,n=10;
     int c=get(m,n);
     System.out.println(c);


     int[] a=testArray(6,100);
     System.out.println(a[2]);
     System.out.println(a.length);
     System.out.println();

     int[] b=testArray(2,100);
     for (int i=0;i< b.length;i++){
         System.out.println(b[i]);


     }

     say("wtx",23);
     say("zmy",80);

*/
    a();
    System.out.println(444);
    }
    public static void a(){
        System.out.println(111);
        b();
        System.out.println(222);
    }
    public static void b(){
        System.out.println(333);
    }







     /*
    public static void say(String name,int age){
        if (age>50){
            return;
        }
        System.out.println("我叫"+name+"今年"+age);
    }

      */







    /*
    public static int [] testArray(int len,int max){
        int arr[]=new int[len];
        for (int i=0;i< arr.length;i++){
            arr[i]=(int) (Math.random()* (max+1));
        }
        return arr;
    }

     */










    /*
    public static void say(String name){
        System.out.println("我叫"+name);
    }
    public static void sayhello(String name,int age){
        System.out.println("我叫"+name+",今年"+age+"了");
    }

    public static double num(){
        return 2.5;
    }
    public static int get(int num1,int num2){
        int num=num1+num2;
        return num;
    }

     */
}

